package com.ruoyi.common.core.domain.depot;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 货币单位对象 tb_monetary
 * 
 * @author ruoyi
 * @date 2023-11-02
 */
public class Monetary extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 货币单位id */
    private Long monetaryId;

    /** 父编号 */
    private Long parentId;

    /** 货币名 */
    @Excel(name = "货币名")
    private String monetaryName;

    /** 货币状态 */
    @Excel(name = "货币状态")
    private String monetaryStatus;

    /** 货币排序 */
    @Excel(name = "货币排序")
    private Long monetarySort;

    /** 备注 */
    @Excel(name = "备注")
    private String monetaryRemark;

    /** 删除状态 0存在1删除 */
    private String deleteStatus;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    public void setMonetaryId(Long monetaryId) 
    {
        this.monetaryId = monetaryId;
    }

    public Long getMonetaryId() 
    {
        return monetaryId;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setMonetaryName(String monetaryName) 
    {
        this.monetaryName = monetaryName;
    }

    public String getMonetaryName() 
    {
        return monetaryName;
    }
    public void setMonetaryStatus(String monetaryStatus) 
    {
        this.monetaryStatus = monetaryStatus;
    }

    public String getMonetaryStatus() 
    {
        return monetaryStatus;
    }
    public void setMonetarySort(Long monetarySort) 
    {
        this.monetarySort = monetarySort;
    }

    public Long getMonetarySort() 
    {
        return monetarySort;
    }
    public void setMonetaryRemark(String monetaryRemark) 
    {
        this.monetaryRemark = monetaryRemark;
    }

    public String getMonetaryRemark() 
    {
        return monetaryRemark;
    }
    public void setDeleteStatus(String deleteStatus) 
    {
        this.deleteStatus = deleteStatus;
    }

    public String getDeleteStatus() 
    {
        return deleteStatus;
    }
    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("monetaryId", getMonetaryId())
            .append("parentId", getParentId())
            .append("monetaryName", getMonetaryName())
            .append("monetaryStatus", getMonetaryStatus())
            .append("monetarySort", getMonetarySort())
            .append("monetaryRemark", getMonetaryRemark())
            .append("deleteStatus", getDeleteStatus())
            .append("addTime", getAddTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
